import http from "@/utils/request"

export default {
	list: {
		method: `admin.doctor.index`,
		name: "医生列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	info: {
		method: `admin.doctor.info`,
		name: "医生",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	store: {
		method: `admin.doctor.store`,
		name: "医生保存",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	getJobTitleList: {
		method: `admin.doctor.getJobTitleList`,
		name: "获取职称",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	getSearchDict: {
		method: `admin.doctor.getSearchDict`,
		name: "获取搜索字典",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	deleteDoctor: {
		method: `admin.doctor.deleteDoctor`,
		name: "删除医生",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	departmentList: {
		method: `admin.doctor.departmentList`,
		name: "科室列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	changeRecordStatus: {
		method: `admin.doctor.changeRecordStatus`,
		name: "医生修改备案状态",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
}
